package com.ismarkendenis.feistelcipher;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		FeistelCipher feistel = new FeistelCipher();

		// Hardcoded 8byte key for testing
		byte[] key = ("secretK!").getBytes();

		// Plaintext message consisting of 12 bytes to check padding and encryption/decryption.
		String plaintext = "HelloWorld";

		System.out.println("Encoded:");
		String ciphertext = feistel.encode(plaintext, key);
		System.out.println(ciphertext);

		System.out.println("Decoded: ");
		System.out.println(feistel.decode(ciphertext, key));
	}
}
